![Best Way to Hide Files in Windows using CMD 13 hide files in windows using cmd tg cover main](https://www.techforgeeks.co.in/wp-content/uploads/2023/01/hide-files-in-windows-using-cmd-tg-cover-main.jpg)
If you share your computer/laptop with friends or coworkers, you should be aware that some of them may attempt to access your personal files. This is simple to do if you do not take precautions. So, if you’re concerned about someone gaining access to private files or folders. Here, we will share the best way you can do to improve security.
In this article, we’ll show you how to hide files in Windows using CMD. Using this method, your file will not be visible even if you enable “Show hidden files, folders, and drives” from Control Panel > File Explorer Options > View.
Also Read: How to Mirror your Android Screen to Windows [2023 Guide]
How to Hide All Files from Folder using CMD
Step 1. Go to the folder containing the files you want to conceal/hide.
Step 2. Type CMD in the address bar.
![Best Way to Hide Files in Windows using CMD 14 hide files in windows using cmd tg](https://www.techforgeeks.co.in/wp-content/uploads/2023/01/hide-files-in-windows-using-cmd-tg.gif)
Step 3. Then type attrib +h +r +s and press enter.
![Best Way to Hide Files in Windows using CMD 15 hide files in windows using cmd tg 2](https://www.techforgeeks.co.in/wp-content/uploads/2023/01/hide-files-in-windows-using-cmd-tg-2.gif)
Step 4. Your all files are now hidden.
Also Read: Instagram introduces Quiet Mode: know how it works!
How to Unhide your All Files
Step 1. Again type CMD in the address bar.
Step 2. Now type attrib -h -r -s and press enter.
![Best Way to Hide Files in Windows using CMD 16 hide files in windows using cmd tg 3](https://www.techforgeeks.co.in/wp-content/uploads/2023/01/hide-files-in-windows-using-cmd-tg-3.gif)
Step 3. Now your files will start showing.
How to Hide a Single File from a Folder
Step 1. Open the folder of the file you want to hide.
Step 2. Type CMD in the address bar.
![Best Way to Hide Files in Windows using CMD 14 hide files in windows using cmd tg](https://www.techforgeeks.co.in/wp-content/uploads/2023/01/hide-files-in-windows-using-cmd-tg.gif)
Step 3. Then type attrib +h +r +s “Your File Name with Extension” and press enter.
Example: "attrib +h +r +s TechforGeeks.rtf"
![Best Way to Hide Files in Windows using CMD 18 hide files in windows using cmd tg 4](https://www.techforgeeks.co.in/wp-content/uploads/2023/01/hide-files-in-windows-using-cmd-tg-4.gif)
Step 4. Done! your file is now hidden.
How to Unhide a Single File from a Folder
Step 1. Open the folder of the file you want to hide.
Step 2. Type CMD in the address bar.
![Best Way to Hide Files in Windows using CMD 14 hide files in windows using cmd tg](https://www.techforgeeks.co.in/wp-content/uploads/2023/01/hide-files-in-windows-using-cmd-tg.gif)
Step 3. Then type attrib -h -r -s “Your File Name with Extension” and press enter.
Example: "attrib -h -r -s TechforGeeks.rtf"
Step 4. Done! Now your files will start showing.